package com.xybbs.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.xybbs.entity.Forums;

public interface ForumsMapper {
	
	@Select("select * from forum")
	List<Forums> selectAll();

	@Delete("delete * from forum where forum_id = #{forumId}")
	void deleteForumById(String forumId);

	@Insert("insert into forum(forumName) values(#{forumName})")
	void insert(Forums forum);
}
